
import Qt 4.7

Item {
    anchors.fill: parent

    Image {
       source: "background.png"
    }

    Image {
       id: cloud1
       source: "cloud_1.1_combo.png"
       scale: 0.5
    }

    ParallelAnimation {
        loops: Animation.Infinite
	// "runtime" not available in standalone C++ application.
        //running: runtime.isActiveWindow 
	running: true
        NumberAnimation { target: cloud1; property: "x"; from:-600; to: 650; duration:80000 }
        NumberAnimation { target: cloud1; property: "y"; from:-150; to: 150; duration:80000 }
    }

    Image {
        id: cog
        source: "button_settings_hover.png"
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        visible: twitterModel.status==XmlListModel.Loading
    }
 
    NumberAnimation {
        target: cog
        loops: Animation.Infinite
        running: cog.visible==1
        property: "rotation"
        from: 0; to: 360
        duration: 5000
    }  
}